package webEquipeRechercheGwt.client.handler.navigation;

import webEquipeRechercheGwt.client.abstractPanels.PaperPanelAbstract;
import webEquipeRechercheGwt.client.entityCreationPanel.PaperCreationPanel;
import webEquipeRechercheGwt.client.structure.DataShowingPanel;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

public class ClickHandlerGetPaperCreationLabel implements ClickHandler {

	private DataShowingPanel mainPanel;
	
	public ClickHandlerGetPaperCreationLabel(DataShowingPanel mainPanel) {
		this.mainPanel = mainPanel;
	}

	@Override
	public void onClick(ClickEvent event) {
		PaperPanelAbstract creationPanel = new PaperCreationPanel(mainPanel);
		mainPanel.setCurrentPanel(creationPanel);
	}

}
